<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <div class="header-top min-width" id="ap1">
        <div class="container fn-clear"> <strong class="fn-left">咨询热线：400-668-6698<span class="s-time">服务时间：9:00 - 18:00</span></strong>
            <ul class="header_contact">
                <li class="c_1"> <a class="ico_head_weixin" id="wx"></a>
                    <div class="ceng" id="weixin_xlgz" style="display: none;">
                        <div class="cnr"> <img src="images/code.png"> </div>
                        <b class="ar_up ar_top"></b> <b class="ar_up_in ar_top_in"></b> </div>
                </li>
                <li class="c_2"><a href="#" target="_blank" title="官方QQ" alt="官方QQ"><b class="ico_head_QQ"></b></a></li>
                <li class="c_4"><a href="#" target="_blank" title="新浪微博" alt="新浪微博"><b class="ico_head_sina"></b></a></li>
            </ul>
            <ul class="fn-right header-top-ul">
                <li> <a href="index.html" class="app">返回首页</a> </li>
                <li v-if="this.user==null">
                    <div class=""><a href="register.html" class="c-orange" title="免费注册">免费注册</a></div>
                </li>
                <li v-if="this.user==null">
                    <div class=""><a href="login.html" class="js-login" title="登录">登录</a></div>
                </li>
            </ul>
            <div v-if="this.user!=null" class=""><a>欢迎{{user.fullName}}登录   <a style="color: red" @click="outuser">[退出]</a></a></div>
        </div>
    </div>
    <div class="header min-width" id="ap2">
        <div class="container">
            <div class="fn-left logo"> <a class="" href="index.html"> <img src="images/logo.png"  title=""> </a> </div>
            <ul class="top-nav fn-clear">
                <li class="on"> <a href="index.html">首页</a> </li>
                <li> <a href="list.html" v-if="this.type==null||this.type==1">我要投资</a> </li>
                <li> <a href="borrow.html" v-if="this.type==null||this.type==0">我要借款</a> </li>
                <li> <a href="帮助中心.html">安全保障</a> </li>
                <li class="top-nav-safe" v-if="this.type!=null"> <a href="个人中心首页.html">我的账户</a> </li>
                <li> <a href="公司简介.html">关于我们</a> </li>
            </ul>
        </div>
    </div>
</head>
<body>
</body>
<script src="script/vue.js"></script>
<script src="script/axios.min.js"></script>
<script src="script/moment.js"></script>
<script>
    new Vue({
        el:"#ap1",
        data:{
            user:{fullName:''},
        },
        methods:{
            outuser:function () {
                sessionStorage.removeItem("type");
                sessionStorage.removeItem("cususer");
                window.location.reload();
            }
        },
        mounted(){
            this.user=JSON.parse(sessionStorage.getItem("cususer"));
        }
    });
    new Vue({
        el:"#ap2",
        data:{
            type:'',
        },
        methods:{

        },
        mounted(){
            this.type=sessionStorage.getItem("type")
        }
    });
</script>
</html>
